package com.gmadmin.service.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.gmadmin.common.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class UnitPositionVo extends BaseEntity {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "职位名称")
    private String positionName;

    @ApiModelProperty(value = "所属组织id")
    private Long organizationId;

    @ApiModelProperty(value = "是否启用")
    private boolean enabled;

    @ApiModelProperty(value = "排序")
    private Long positionSort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public Long getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public Long getPositionSort() {
        return positionSort;
    }

    public void setPositionSort(Long positionSort) {
        this.positionSort = positionSort;
    }

    @ApiModelProperty(value = "下拉选项显示名称")
    public String getLabel() {
        return positionName;
    }

    @ApiModelProperty(value = "返回值")
    public Long getValue() {
        return id;
    }

    @ApiModelProperty(value = "是否禁用，true禁用")
    public Boolean getDisabled() {
        return Boolean.FALSE.equals(enabled);
    }

}
